﻿using System;
using System.Collections.Generic;
using NoteHelper.IBusiness;
using NoteHelper.Model;

namespace NoteHelper.Business.IbatisImpl
{
	public class ArticleAttributeManagerImpl : ManagerBase<ArticleAttribute>, IArticleAttributeManager
    {
	    public override int Update(ArticleAttribute entity)
	    {
	        throw new NotImplementedException("Suggest delete first, then add new.");
	    }

	    public IList<ArticleAttribute> GetArticleAttributeList(int articleId)
	    {
            return Mapper.QueryForList<ArticleAttribute>("GetArticleAttributeList", articleId);
	    }

	    public void InitDb()
        {
            LogRuntimeSql("InitDb", null);
            Mapper.QueryForObject("InitDb", null);
	    }
    }
}
